/* 
Title: Book Search 
Author: tmg
Version: 3 
Date: 10/23/13
*/

/* =structure
--------------------------------------- */

#b-search {
	width: 940px;
	/*margin: 0 auto;*/
	padding: 0 0 10px 20px;
}

#bs_wrap {
	width: 660px;
	padding: 0 20px 0;
}

/* =general
--------------------------------------- */

/* I'm looking for... */
#b-search h2 {
	font-size: 1.5em;
	color: #666;
	font-weight: normal;
	letter-spacing: 1px;
	margin-bottom: 5px;
}

#bs_wrap h2 {
	font-size: 30px;
	color: #4d4d4c;
	margin-bottom: 10px;
}

#bs_wrap h3 {
	font-size: 24px;
	color: #858484;
	font-weight: normal;
	margin-bottom: 14px;
}

#bs_wrap h4 {
	font-size: 18px;
	color: #414141;
	font-weight: normal;
	margin-bottom: 14px;
}

#books #bs_wrap h2 a:link, #books #bs_wrap h2 a:visited {
	color: #4d4d4c;
}

#books #bs_wrap h3 a:link, #books #bs_wrap h3 a:visited {
	color: #858484;
}

#books #bs_wrap h4 a:link, #books #bs_wrap h4 a:visited {
	color: #414141;	
}


#books #bs_wrap h2 a:hover, 
#books #bs_wrap h3 a:hover, 
#books #bs_wrap h4 a:hover {
	text-decoration: underline;
}


/* =search form
--------------------------------------- */

form#bs-form {
	width: 880px; 
	height: 40px;
	padding-right: 20px;
}

form#bs-form input[type="text"] {
	width: 700px;
	height: 38px;
	border: 1px solid #ddd;
	font-size: 1em; /* =16px */
	color: #a2a2a2;
	background-color: #FFFFFF;
	padding: 0 0 0 10px;
	margin: 0 0 0 -5px;	/* added 11/19 */ 
	vertical-align: top;
}

/* removed 11/19 */
/*form#bs-form img#mglass {
	width: 60px;
	height: 40px;
	vertical-align: top;
}*/

form#bs-form input[type="submit"] {
	background: #5c2e86 url(../images/css_img/button-go.gif) no-repeat top left;
	width: 80px;
	height: 40px;
	border: none;
	padding: 0;
	margin: 0;
	vertical-align: top;
}

/* added 11/19 */
form#bs-form .bs-select-wrap {
	position: relative;
	display: inline-block;
	width: 80px;
	height: 38px;
	font-size: 14px;
	line-height: 38px;
	font-weight: bold;
	text-align: right;
	border: 1px solid #e9b300;
	background-color: #e9b300;
	color: #fff;
	vertical-align: middle;
	overflow: hidden;
}

/* added 11/19 */
form#bs-form .triangle {
	position: absolute;
	top: 17px;
	left: 65px;
	/*float: left;*/
	height: 0;
	width: 0;
	display: block;
	border-width: 8px 4px 0 4px;
	border-style: solid;
	border-color: #c79900 transparent transparent  transparent;
}

/* added 11/19 */
form#bs-form #bs-select {
	-webkit-appearance: none;
	-moz-appearance: window;
	position: absolute;
	top: 12px; 
	left: 6px;
	height: 16px;
	width: 100px;
	background-color: transparent; 
	color: #fff; /* seems to determine color of dotted border on focus in FF */
	font-weight: bold;
	font-size: 12px;
	letter-spacing: 1px;
	text-indent: .1px; /* fix: works with text-overflow to remove drop-down menu in Firefox */
	text-overflow: ""; /* fix: removes drop-down arrow in Firefox */
	cursor: pointer;
	background-image: none;
	border-bottom-color: #e9b300;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
	border-bottom-style: none;
	border-bottom-width: 0px;
	border-left-color: #e9b300;
	border-left-style: none;
	border-left-width: 0px;
	border-right-color: #e9b300;
	border-right-style: none;
	border-right-width: 0px;
	border-top-color: #e9b300;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	border-top-style: none;
	border-top-width: 0px;
	-moz-box-sizing: border-box;
  	box-sizing: border-box;
  	vertical-align: middle;
}

/* added 11/19 ; FF */
form#bs-form #bs-select option {
	background: #fff;
	color: #444;
	padding: 2px 0 2px 4px;
}

/* added 11/19 */
form#bs-form #bs-select option:focus, form#bs-form #bs-select:focus {
	outline: none;
}

/* added 11/19 ; removes dotted outline in FF */
#bs-form select#bs-select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #fff;
}

/* =subjects .subj = categories page ; .subj_cat = sub-category pages
--------------------------------------- */

.subj h3 {
	float: left;
	width: 300px;
	letter-spacing: 1px;
	margin-right: 20px;
}

.subj h3 span {
	font-size: 14px;
	display: block;
	color: #333333;
	font-weight: normal;
	padding-top: 4px;
	letter-spacing: 0;
}

.subj h3 a:link {
	font-size: 18px;
	color: #999999;
	padding-bottom: 4px;
}
 
.results li div {
	float: left;
	width: 122px;
	margin-right: 28px;
}

.results ul {
	margin-bottom: 14px;	
}


/* generic search results layout & subject sub-category layout */

.results li img {
	width: 110px;
	vertical-align: top;
	padding: 5px;
	margin-bottom: 7px;
	border: 1px solid #bdbaaf;
	-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	-moz-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	-ms-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	box-shadow: 1px 1px 4px rgba(0,0,0,.3);
}

.results li {
	font-size: 14px;
	color: #414141;
	margin-bottom: 3px;
}

.results li cite {
	font-weight: bold;
	font-style: normal;
}

.results li strong, 
.results li em {
	font-style: normal;
	font-weight: normal;
}

.results li em {
	color: #5c2e86;
}

.results li em,
.results li span {
	font-size: 12px;
}

/* ensures 4 book rows */  
.results li.new-row {
	clear: left;
}

/* links to more books for each subject sub-category */

.results div.more {
	clear: left; 
	text-align: right;
	margin-bottom: 28px;
}

.results div.more a:link, .results div.more a:visited {
	font-size: 18px;
	color: #a09f9f;
}

.results div.more a.top {
	float: left;
}

/* =search results 
--------------------------------------- */

/* -- search results: pagination -- */
 
.results ol.bs-nav {
	width: 100%;
	margin: 20px 0 28px 2px;
}

.results ol.bs-nav li {
	float: left;
	margin: 0 .6em 0 0;
}

.results ol.bs-nav a, 
.results ol.bs-nav li.selected {
	display: block;
	padding: 0.2em 0.5em;
	border: 1px solid #ccc;
	color: #5c2e86;
	text-decoration: none;
}

.results ol.bs-nav a:hover, 
.results ol.bs-nav a:focus, 
.results ol.bs-nav li.selected {
	background-color: #5c2e86;
	border-color: #5c2e86;
	color: #ffffff;
}

/* -- book detail -- */

.detail .b-entry {
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #5d5d5e;
}

.detail .b-entry div.img {
	float: left;
	width: 184px;
}

.detail .b-entry div.img img {
	width: 160px; /* 100% */
	padding: 5px;
	margin-right: 12px;
	border: 1px solid #bdbaaf;
	-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	-moz-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	-ms-box-shadow: 1px 1px 4px rgba(0,0,0,.3);
	box-shadow: 1px 1px 4px rgba(0,0,0,.3);
}

.detail .b-entry div.img+div {
	width: 476px;
	float: right;
}

#bs_wrap .b-entry h4 {
	font-size: 20px;
	line-height: 1.1;
	margin-bottom: 4px;
	font-weight: 500;
	color: #4c3066;
}

.detail .b-entry p {
	margin-bottom: 16px;
}

.detail .b-entry p.addtocart a {
	color: #fff;
	display: inline-block;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 4px 16px;
	background: #f17127;
	border: 1px solid #ce5806;
}

.detail .b-entry p.addtocart a:hover {
	text-decoration: none;
}

.detail .b-entry .price {
	font-size: 16px;
	margin-bottom: 18px;
}

.detail .b-entry .price span {
	display: block;
}

.detail .b-entry .price em {
	text-decoration: line-through;
	color: #414141;
	font-weight: bold;
}

.detail .b-entry .price strong {
	color: #f17a27;
}

.detail .b-services, 
.detail .b-details, 
.detail .b-description, 
.detail .b-notes {
	font-size: 14px;
	line-height: 1.25;
	margin: 0 0 20px 0;
}

.detail .b-services p, 
.detail .b-description p {
	margin: 0 0 4px 0;
}

.detail .b-services p:last-child {
	margin: 0;
}

.detail .b-services a:link {
	color: #414141;
	text-transform: uppercase;	
}

.detail .b-details h5, 
.detail .b-description h5 {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 5px;
	letter-spacing: 1px;
}

.detail .b-details strong {
	color: #333;
}

/* No search results page */

div.no_results p {
	margin: 0 0 14px 0;
}

div.no_results a:link, div.no_results a:visited {
	color: #858484;
	font-weight: bold;
}
